<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'horizontalForm',
    'type' => 'horizontal',
    'enableAjaxValidation' => false,
//    'action'=>Yii::app()->createUrl('');
        ));
?>
<legend>Buku Kas Umum</legend>
<br>

<?php echo $form->errorSummary($model); ?>

<div class="form">
    <br>

    <div class="control-group ">
        <label class="control-label" >Tahun</label>

        <input type="text" class="span1" style="width: 30px;">
    </div>
    
<div class="control-group ">
    <label class="control-label" >Bulan</label>
    <div class="controls">

        <?php
        echo $form->DropDownList($model, 'nomor_kk', array(
            'prompt' => '--Pilih Bulan --',
                  '0' => 'Januari',
                  '1' => 'Pebruari',
                  '2' => 'Maret',
                  '3' => 'April',
                  '4' => 'Mei',
                  '5' => 'Juni',
                  '6' => 'Juli',
                  '7' => 'Agustus',
                  '8' => 'September',
                  '9' => 'Oktober',
                  '10' => 'Nopember',
                  '11' => 'Desember'
                ), array('class' => 'span2'));
        ?>
    </div>
</div>

</div>

<div class="control-group ">
    <label class="control-label" >Pilih </label>
        <div class="controls">                
           <?php echo $form->radioButtonList($model, 'nomor_kk', array(
            'Layar',
            'Printer',
            )); ?>
        </div>
</div>

<div class="form-actions">
    <?php
    $this->widget('bootstrap.widgets.TbButton', array(
        'buttonType' => 'submit',
        'type' => 'primary',
        'label' => $model->isNewRecord ? 'Proses' : 'Save',
    ));
    ?>
    <?php
    $this->widget('bootstrap.widgets.TbButton', array(
        'buttonType' => 'submit',
        'type' => 'primary',
        'label' => $model->isNewRecord ? 'Batal' : 'Reset',
    ));
    ?>

</div>


<?php $this->endWidget(); ?>